package com.hyg.lib_music.modle;

import java.util.List;

/**
 * @author: Administrator
 * @date: 2021/4/9
 */
public class CategoryMusicListData {


    /**
     * code : 200
     * message : 操作成功
     * data : [{"id":20,"musicName":"思凡","musician":"无","musicDuration":458,"region":0,"musicUrl":"https://app-music-library.oss-cn-beijing.aliyuncs.com/中医类/中医体质辨识/平和质/思凡.mp3","cateId":45,"cateName":"平和质"},{"id":21,"musicName":"思丝入扣","musician":"无","musicDuration":243,"region":0,"musicUrl":"https://app-music-library.oss-cn-beijing.aliyuncs.com/中医类/中医体质辨识/平和质/思丝入扣.mp3","cateId":45,"cateName":"平和质"},{"id":22,"musicName":"丝竹新韵","musician":"无","musicDuration":363,"region":0,"musicUrl":"https://app-music-library.oss-cn-beijing.aliyuncs.com/中医类/中医体质辨识/平和质/丝竹新韵.mp3","cateId":45,"cateName":"平和质"}]
     */

    public int code;
    public String message;
    public List<DataDTO> data;

    public CategoryMusicListData() {
    }


    public static class DataDTO {
        /**
         * id : 20
         * musicName : 思凡
         * musician : 无
         * musicDuration : 458
         * region : 0
         * musicUrl : https://app-music-library.oss-cn-beijing.aliyuncs.com/中医类/中医体质辨识/平和质/思凡.mp3
         * cateId : 45
         * cateName : 平和质
         */

        public int id;
        public String musicName;
        public String musician;
        public int musicDuration;
        public int region;
        public String musicUrl;
        public int cateId;
        public int favorite;
        public String cateName;
        public boolean isplaying = false;
        public boolean isEditable = false;
        public boolean isChecked = false;


        public DataDTO() {
        }

        public DataDTO(int id, String musicName, String musician, int musicDuration, int region, String musicUrl,int favorite) {
            this.id = id;
            this.musicName = musicName;
            this.musician = musician;
            this.musicDuration = musicDuration;
            this.region = region;
            this.musicUrl = musicUrl;
            this.favorite = favorite;
        }

          public DataDTO(int id, String musicName, String musician, int musicDuration, int region, String musicUrl,int favorite,boolean isplaying,boolean isEditable,boolean isChecked) {
            this.id = id;
            this.musicName = musicName;
            this.musician = musician;
            this.musicDuration = musicDuration;
            this.region = region;
            this.musicUrl = musicUrl;
            this.favorite = favorite;
            this.isplaying = isplaying;
            this.isEditable = isEditable;
            this.isChecked = isChecked;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public boolean isChecked() {
            return isChecked;
        }

        public void setChecked(boolean checked) {
            isChecked = checked;
        }

        public boolean isEditable() {
            return isEditable;
        }

        public void setEditable(boolean editable) {
            isEditable = editable;
        }

        public boolean isIsplaying() {
            return isplaying;
        }

        public void setIsplaying(boolean isplaying) {
            this.isplaying = isplaying;
        }
    }
}
